package lp2.projeto;
import org.junit.*;

public class FormaDeContatoTest {
	FormaDeContato f1;
	FormaDeContato f2;
	FormaDeContato f3;
	FormaDeContato f4;
	
	@Before
	public void novaFormaDeContato(){
		f1 = new FormaDeContato("Email", "aluno@ccc.ufcg.edu.br", "email institucional");
		f2 = new FormaDeContato("Email", "aluno@ccc.ufcg.edu.br", "email institucional");
		f3 = new FormaDeContato("Facebook", "www.facebook.com/aluno");
		f4 = new FormaDeContato("Twitter", "www.twitter.com/@aluno");
	}
	
	@Test
	public void testaCompareTo(){
		Assert.assertTrue(f1.compareTo(f2) == 0);
		Assert.assertTrue(f1.compareTo(f3) < 0);
		Assert.assertTrue(f4.compareTo(f3) > 0);
	}

}
